<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sys_config".
 *
 * @property string $id
 * @property string $name
 * @property string $value
 * @property string $remark
 * @property integer $show_order
 * @property integer $status
 */
class SysConfig extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sys_config';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'value', 'remark'], 'required'],
            [['show_order', 'status'], 'integer'],
            [['name', 'value', 'remark'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '主键',
            'name' => '配置名称',
            'value' => '配置值',
            'remark' => '备注',
            'show_order' => '显示次序',
            'status' => '状态（0：无效 1：有效）',
        ];
    }
}
